package com.seqb.manage.task.service;

import com.github.pagehelper.Page;
import com.seqb.manage.task.domain.TaskDO;
import org.quartz.SchedulerException;

import java.util.Map;

/**
 * @author lilinshen
 * @title 定时任务表
 * @description 请填写相关描述
 * @date 2019/11/15
 */
public interface TaskService {

    TaskDO get(Long id);

    Page<TaskDO> list(Map<String, Object> map);

    int count(Map<String, Object> map);

    int save(TaskDO task);

    int update(TaskDO task);

    int remove(Long id);

    int batchRemove(Long[] ids);

    void initSchedule() throws SchedulerException;

    void changeStatus(Long jobId, String cmd) throws SchedulerException;

    void updateCron(Long jobId) throws SchedulerException;
}
